package com.lots.service;

import com.lots.domain.dto.FavoriteDto;
import com.lots.domain.dto.LoginDto;
import com.lots.domain.dto.RegisterDto;
import com.lots.domain.entity.Dish;
import com.lots.domain.entity.User;
import com.lots.domain.vo.LoginInfo;

import java.util.List;

public interface UserService {

    LoginInfo login(LoginDto  user);

    void code(String phone);

    Integer register(RegisterDto registerDto);

    void favorite(FavoriteDto favoriteDto);

    List<Dish> queryWorks();

    List<Dish> queryStars();

    void updateAvatar(Long userId, String avatar);

    void updateUserName(Long userId, String name);
}
